package com.wrh.springboot.restwrap;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author wrh
 * @param <T>
 */
@Data
@AllArgsConstructor
@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class RestResult<T> {

    private Integer code;
    private Long cost;
    private String msg;
    private T data;

}
